﻿<Window x:Class="Songhay.Wpf.Mvvm.Views.AboutView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"

    xmlns:m="clr-namespace:Songhay.Wpf.Mvvm.ViewModels"

    Icon="../songhay.ico"
    ResizeMode="NoResize"
    ShowInTaskbar="False"
    Title="About"
    Topmost="True"
    Width="512" Height="300"
    >
    <!--
        SonghaySystem.com, 2009
        Bryan D. Wilhite
        rasx@songhaysystem.com
        Biggest Box:   WSVGA (1024x600)
        Black Color:   Web-safe216 (#000)
        White Color:   X11-Seashell (#fff5ee)
        Warm Color:    X11-GreenYellow (#adff2f)
        Cool Color:    X11-DarkGreen (#006400)
        Neutral Color: X11-DarkSeaGreen (#8fbc8f)

        http://en.wikipedia.org/wiki/Web_colors
    -->
    <Window.Resources>
        <m:AboutViewModel x:Key="AboutViewModel" d:IsDataSource="True" />
    </Window.Resources>

    <FocusManager.FocusedElement>
        <Binding ElementName="OkButton" />
    </FocusManager.FocusedElement>

    <Canvas x:Name="AboutCanvas" DataContext="{StaticResource AboutViewModel}">
        <Canvas.Resources>
            <Style TargetType="{x:Type Button}">
                <Setter Property="Cursor" Value="Hand" />
            </Style>
        </Canvas.Resources>
        <Canvas.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="DarkGreen" Offset="0"/>
                <GradientStop Color="GreenYellow" Offset="1"/>
            </LinearGradientBrush>
        </Canvas.Background>
        <Path Fill="#FFCCFF00" Stretch="Fill" Width="69.379" Height="97.742" Canvas.Left="18" Canvas.Top="18" Data="F1M116.60986,248.75098L116.60986,266.76611L108.86426,266.76611L108.86426,248.75098L96.06543,248.75098L96.06543,268.1333L88.31982,268.1333L88.31982,248.75098L75.521,248.75098L75.521,269.5L67.77539,269.5L67.77539,241.72705L129.56885,241.72705C129.5791,235.72412,126.15479,231.19092,119.86523,231.19092L68.17578,231.19092L68.17578,224.16797C68.17578,214.53271,75.73535,206.58691,85.46484,206.60791L130.48047,206.70459C130.50537,200.05762,126.61963,196.14697,119.86523,196.16895L68.17578,196.3418L68.17578,189.31787C68.17578,179.67676,75.74219,171.75781,85.46484,171.75781L136.66797,171.75781L136.66797,178.78223L85.46484,178.78223C78.24805,178.78223,75.91162,182.98779,74.98584,189.23389L119.86523,189.14502C129.59619,189.12598,137.1543,197.06982,137.1543,206.70459L137.1543,213.729L85.46484,213.63135C78.70752,213.61865,74.82471,217.51074,74.8501,224.16797L119.86523,224.16797C129.58936,224.16797,137.1543,232.0874,137.1543,241.72705L137.1543,265.39941L129.40869,265.39941L129.40869,248.75098L116.60986,248.75098z"/>
        <Border Width="367" Height="191" Canvas.Left="121" Canvas.Top="18" CornerRadius="14" BorderThickness="2" BorderBrush="GreenYellow">
            <FlowDocumentScrollViewer Margin="6,6,18,6" VerticalScrollBarVisibility="Auto">
                <FlowDocument>
                    <FlowDocument.Resources>
                        <Style TargetType="{x:Type Hyperlink}">
                            <Setter Property="Cursor" Value="Hand" />
                            <Setter Property="Foreground" Value="#FFFFF5EE" />
                        </Style>
                        <Style TargetType="{x:Type Paragraph}">
                            <Setter Property="FontFamily" Value="Segoe UI" />
                            <Setter Property="FontSize" Value="10pt" />
                            <Setter Property="Foreground" Value="#FFFFF5EE" />
                            <Setter Property="LineHeight" Value="14pt" />
                            <Setter Property="Margin" Value="0" />
                        </Style>
                    </FlowDocument.Resources>
                    <Paragraph FontSize="14pt" FontWeight="Bold" Margin="0,0,0,10pt">
                        <Hyperlink Command="{Binding ClientCommand}" CommandParameter="#about-uri" >
                            <TextBlock Text="{Binding AssemblyTitle, Mode=OneTime}" />
                        </Hyperlink>
                    </Paragraph>
                    <Paragraph>
                        <TextBlock Text="{Binding AssemblyCopyright, Mode=OneTime}"/>
                    </Paragraph>
                    <Paragraph>
                        <TextBlock Text="{Binding AssemblyVersion, Mode=OneTime}"/>
                    </Paragraph>
                    <Paragraph>
                        <TextBlock Text="{Binding AssemblyCompany, Mode=OneTime}"/>
                    </Paragraph>
                    <Paragraph Margin="0,10pt,0,0">
                        <Run FontWeight="Bold">Description:&#160;</Run>
                        <TextBlock Text="{Binding AssemblyDescription}"/>
                    </Paragraph>
                </FlowDocument>
            </FlowDocumentScrollViewer>
        </Border>
        <Button
            x:Name="OkButton"
            Canvas.Left="413"
            Canvas.Top="227.686"
            Content="OK"
            Cursor="Hand"
            IsCancel="True"
            Width="75"
            />
    </Canvas>
</Window>
